<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>后台登录</title>
  <link rel="stylesheet" type="text/css" href="{{asset('ad/css/login.css')}}" />
  <style>
  body{height:100%;background:#16a085;overflow:hidden;}
  canvas{z-index:-1;position:absolute;}
  </style>
</head>
<body>
<form role="form" method="POST" action="{{url('admin/doLogin')}}">
  {{ csrf_field() }}
  <dl class="admin_login">
    <dt>
    <strong>{{config('app.name')}}</strong>
    <em>Management System</em>
    </dt>
    <dd class="user_icon col-xs-4">
    <input type="text" placeholder="用户名或者邮箱" name="email" class="login_txtbx" value="" />
    @if ($errors->has(config('admin.global.username')))
    <dt class="error">
      <em>{{ $errors->first(config('admin.global.username')) }}</em>
    </dt>
    @endif
    </dd>
    <dd class="pwd_icon">
    <input type="password" placeholder="密码" name="password" class="login_txtbx" />
    @if ($errors->has('password'))
    <dt class="error">
      <em>{{ $errors->first('password') }}</em>
    </dt>
    @endif
    </dd>
    <dd class="val_icon">
    <input type="text" name="captcha" placeholder="验证码" class="login_txtbx checkcode_input"/><a onclick="javascript:re_captcha();" ><img class="ver_btn" src="{{ URL('admin/captcha/1') }}"  alt="验证码" title="刷新图片" width="80" height="40" id="c2c98f0de5a04167a9e427d883690ff6" border="0"></a>
    @if (session('info'))
    <dt class="error">
      <em>{{ session('info') }}</em>
    </dt>
    @endif
    </dd>
    <dd>
    <input type="submit" value="立即登陆" class="submit_btn"/>
    </dd>
    <dd>
    <p>小白杨后台权限系统</p>
    <p>小白杨</p>
    </dd>
  </dl>
</form>
   
  <script src="{{asset('vendors/jquery/jquery-2.1.1.js')}}"></script>
  <script src="{{asset('vendors/Particleground.js')}}"></script>
  <script>
      $(document).ready(function() {
      //粒子背景特效
      $('body').particleground({
      dotColor: '#5cbdaa',
      lineColor: '#5cbdaa'
      });
      });

      function re_captcha() {
        $url = "{{ URL('admin/captcha') }}";
            $url = $url + "/" + Math.random();
            document.getElementById('c2c98f0de5a04167a9e427d883690ff6').src=$url;
      }
  </script>
</body>
</html>